package com.dmap.knowledge.rpc;

import com.dmap.knowledge.bo.company.CompanyAPPInfo;
import com.dmap.knowledge.rpc.fallback.CompanyServiceRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "pmpd-admin-server", fallback = CompanyServiceRpcFallback.class)
public interface CompanyServiceRpc {

    /**
     * 根据app编号查询app的信息和app所属公司的信息
     * @param appNumber　app编号
     * @return
     */
    @RequestMapping(value = "/rpc/background/pmpd-admin-server/v2/companyInfo/select/selectCompanyAppInfoByProjectId", method = RequestMethod.GET)
    CompanyAPPInfo selectCompanyAppInfo(@RequestParam(value = "appNumber") String appNumber);
}


